package com.carpedil.controller;

import com.carpedil.service.impl.UserServiceImpl;

/** @author Administrator */
public class UserController {
  /** 纯xml配置注入方式 userService作为属性引入UserController控制层 所以需要给userService生成getter/setter方法 */
  private UserServiceImpl userService;

  public void doSomething() {
    userService.doSomething();
    System.out.println("userController========>控制层方法");
  }

  public UserServiceImpl getUserService() {
    return userService;
  }

  public void setUserService(UserServiceImpl userService) {
    this.userService = userService;
  }
}
